<?php
/**
* @author: Truong Kim Phung
* @date: Monday, January 27, 2014
*/
$strUrlBack = isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND;
if( !isset($AppUI) /*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
) {
	redirect($strUrlBack);
}
$this->load->model('admin_model', 'admin');
$intAdminId = (int)$this->input->get('adminid', 0);
$row        = $this->admin->get($intAdminId);
$this->smarty->assign('row', $row);
$this->smarty->assign('back', $strUrlBack);
$this->smarty->assign('arrType', $arrType);
$this->smarty->assign('arrRoom', $arrRoom);
$this->smarty->display('admin/edit.tpl');